.class public Lcom/waiqin365/lightapp/kehu/a/a/bi;
.super Lcom/waiqin365/lightapp/kehu/a/d;


# instance fields
.field public d:Ljava/lang/String;

.field public e:Ljava/lang/String;

.field public f:I

.field public g:I

.field public h:I

.field public i:Ljava/util/ArrayList;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/16 v0, 0x76

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/kehu/a/d;-><init>(I)V

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Z
    .locals 13

    const/4 v0, 0x1

    const/4 v1, 0x0

    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v3, "code"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/waiqin365/lightapp/kehu/a/a/bi;->d:Ljava/lang/String;

    const-string/jumbo v3, "message"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/waiqin365/lightapp/kehu/a/a/bi;->e:Ljava/lang/String;

    const-string/jumbo v3, "count"

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result v3

    iput v3, p0, Lcom/waiqin365/lightapp/kehu/a/a/bi;->f:I

    const-string/jumbo v3, "curPage"

    const/4 v4, 0x1

    invoke-virtual {v2, v3, v4}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result v3

    iput v3, p0, Lcom/waiqin365/lightapp/kehu/a/a/bi;->g:I

    const-string/jumbo v3, "totalPage"

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result v3

    iput v3, p0, Lcom/waiqin365/lightapp/kehu/a/a/bi;->h:I

    const-string/jumbo v3, "credit_data"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v4

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iput-object v2, p0, Lcom/waiqin365/lightapp/kehu/a/a/bi;->i:Ljava/util/ArrayList;

    move v3, v1

    :goto_0
    if-eqz v4, :cond_5

    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v3, v2, :cond_5

    invoke-virtual {v4, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v5

    new-instance v6, Lcom/waiqin365/lightapp/kehu/b/ab;

    invoke-direct {v6}, Lcom/waiqin365/lightapp/kehu/b/ab;-><init>()V

    const-string/jumbo v2, "id"

    const-string/jumbo v7, ""

    invoke-virtual {v5, v2, v7}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->d:Ljava/lang/String;

    const-string/jumbo v2, "credit_id"

    const-string/jumbo v7, ""

    invoke-virtual {v5, v2, v7}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->e:Ljava/lang/String;

    const-string/jumbo v2, "baseinfo"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    if-eqz v2, :cond_0

    const-string/jumbo v7, "name"

    const-string/jumbo v8, ""

    invoke-virtual {v2, v7, v8}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->a:Ljava/lang/String;

    const-string/jumbo v7, "status"

    const-string/jumbo v8, ""

    invoke-virtual {v2, v7, v8}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->c:Ljava/lang/String;

    const-string/jumbo v7, "oper_name"

    const-string/jumbo v8, ""

    invoke-virtual {v2, v7, v8}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->b:Ljava/lang/String;

    const-string/jumbo v7, "econ_kind"

    const-string/jumbo v8, ""

    invoke-virtual {v2, v7, v8}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->i:Ljava/lang/String;

    const-string/jumbo v7, "end_date"

    const-string/jumbo v8, ""

    invoke-virtual {v2, v7, v8}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->h:Ljava/lang/String;

    const-string/jumbo v7, "scope"

    const-string/jumbo v8, ""

    invoke-virtual {v2, v7, v8}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->j:Ljava/lang/String;

    const-string/jumbo v7, "belong_org"

    const-string/jumbo v8, ""

    invoke-virtual {v2, v7, v8}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->l:Ljava/lang/String;

    const-string/jumbo v7, "addresses"

    const-string/jumbo v8, ""

    invoke-virtual {v2, v7, v8}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->k:Ljava/lang/String;

    const-string/jumbo v7, "start_date"

    const-string/jumbo v8, ""

    invoke-virtual {v2, v7, v8}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->f:Ljava/lang/String;

    const-string/jumbo v7, "regist_capi"

    const-string/jumbo v8, ""

    invoke-virtual {v2, v7, v8}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->g:Ljava/lang/String;

    :cond_0
    const-string/jumbo v2, "data_source"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    if-eqz v2, :cond_1

    const-string/jumbo v7, "des"

    const-string/jumbo v8, ""

    invoke-virtual {v2, v7, v8}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->m:Ljava/lang/String;

    const-string/jumbo v7, "keyword"

    const-string/jumbo v8, ""

    invoke-virtual {v2, v7, v8}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->n:Ljava/lang/String;

    const-string/jumbo v7, "url"

    const-string/jumbo v8, ""

    invoke-virtual {v2, v7, v8}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->o:Ljava/lang/String;

    :cond_1
    const-string/jumbo v2, "partners"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v7

    new-instance v8, Ljava/util/ArrayList;

    invoke-direct {v8}, Ljava/util/ArrayList;-><init>()V

    move v2, v1

    :goto_1
    if-eqz v7, :cond_2

    invoke-virtual {v7}, Lorg/json/JSONArray;->length()I

    move-result v9

    if-ge v2, v9, :cond_2

    invoke-virtual {v7, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    new-instance v10, Lcom/waiqin365/lightapp/kehu/b/af;

    invoke-direct {v10}, Lcom/waiqin365/lightapp/kehu/b/af;-><init>()V

    const-string/jumbo v11, "name"

    const-string/jumbo v12, ""

    invoke-virtual {v9, v11, v12}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    iput-object v11, v10, Lcom/waiqin365/lightapp/kehu/b/ad;->a:Ljava/lang/String;

    const-string/jumbo v11, "stock_type"

    const-string/jumbo v12, ""

    invoke-virtual {v9, v11, v12}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v10, Lcom/waiqin365/lightapp/kehu/b/ad;->b:Ljava/lang/String;

    invoke-virtual {v8, v10}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    :cond_2
    iput-object v8, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->s:Ljava/util/ArrayList;

    const-string/jumbo v2, "employees"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v7

    new-instance v8, Ljava/util/ArrayList;

    invoke-direct {v8}, Ljava/util/ArrayList;-><init>()V

    move v2, v1

    :goto_2
    if-eqz v7, :cond_3

    invoke-virtual {v7}, Lorg/json/JSONArray;->length()I

    move-result v9

    if-ge v2, v9, :cond_3

    invoke-virtual {v7, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    new-instance v10, Lcom/waiqin365/lightapp/kehu/b/ae;

    invoke-direct {v10}, Lcom/waiqin365/lightapp/kehu/b/ae;-><init>()V

    const-string/jumbo v11, "name"

    const-string/jumbo v12, ""

    invoke-virtual {v9, v11, v12}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    iput-object v11, v10, Lcom/waiqin365/lightapp/kehu/b/ad;->a:Ljava/lang/String;

    const-string/jumbo v11, "job_title"

    const-string/jumbo v12, ""

    invoke-virtual {v9, v11, v12}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v10, Lcom/waiqin365/lightapp/kehu/b/ad;->b:Ljava/lang/String;

    invoke-virtual {v8, v10}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v2, v2, 0x1

    goto :goto_2

    :cond_3
    iput-object v8, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->t:Ljava/util/ArrayList;

    const-string/jumbo v2, "branches"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v5

    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    move v2, v1

    :goto_3
    if-eqz v5, :cond_4

    invoke-virtual {v5}, Lorg/json/JSONArray;->length()I

    move-result v8

    if-ge v2, v8, :cond_4

    invoke-virtual {v5, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    new-instance v9, Lcom/waiqin365/lightapp/kehu/b/ac;

    invoke-direct {v9}, Lcom/waiqin365/lightapp/kehu/b/ac;-><init>()V

    const-string/jumbo v10, "name"

    const-string/jumbo v11, ""

    invoke-virtual {v8, v10, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    iput-object v8, v9, Lcom/waiqin365/lightapp/kehu/b/ad;->a:Ljava/lang/String;

    const-string/jumbo v8, ""

    iput-object v8, v9, Lcom/waiqin365/lightapp/kehu/b/ad;->b:Ljava/lang/String;

    invoke-virtual {v7, v9}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v2, v2, 0x1

    goto :goto_3

    :cond_4
    iput-object v7, v6, Lcom/waiqin365/lightapp/kehu/b/ab;->u:Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a/a/bi;->i:Ljava/util/ArrayList;

    invoke-virtual {v2, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    add-int/lit8 v2, v3, 0x1

    move v3, v2

    goto/16 :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    move v0, v1

    :cond_5
    return v0
.end method
